﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_spm_Sales_2 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } } private string _ID; public static FieldInfo iD = new FieldInfo("mdc_spm_Sales_2", "ID");
        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } } private string _Process; public static FieldInfo process = new FieldInfo("mdc_spm_Sales_2", "Process");
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } } private int _Incident; public static FieldInfo incident = new FieldInfo("mdc_spm_Sales_2", "Incident");
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } } private string _UserName; public static FieldInfo userName = new FieldInfo("mdc_spm_Sales_2", "UserName");
        [Column]
        public string DrpPriority { get { return _DrpPriority; } set { _DrpPriority = value; EntityState.FieldChange("DrpPriority"); } } private string _DrpPriority; public static FieldInfo drpPriority = new FieldInfo("mdc_spm_Sales_2", "DrpPriority");
        [Column]
        public string DMO_DrpPriority { get { return _DMO_DrpPriority; } set { _DMO_DrpPriority = value; EntityState.FieldChange("DMO_DrpPriority"); } } private string _DMO_DrpPriority; public static FieldInfo dMO_DrpPriority = new FieldInfo("mdc_spm_Sales_2", "DMO_DrpPriority");

        [Column]
        public string Sales_Office_1 { get { return _Sales_Office_1; } set { _Sales_Office_1 = value; EntityState.FieldChange("Sales_Office_1"); } } private string _Sales_Office_1; public static FieldInfo sales_Office_1 = new FieldInfo("mdc_spm_Sales_2", "Sales_Office_1");
        [Column]
        public string Type { get { return _Type; } set { _Type = value; EntityState.FieldChange("Type"); } } private string _Type; public static FieldInfo type = new FieldInfo("mdc_spm_Sales_2", "Type");
        [Column]
        public string Sales_Region { get { return _Sales_Region; } set { _Sales_Region = value; EntityState.FieldChange("Sales_Region"); } } private string _Sales_Region; public static FieldInfo sales_Region = new FieldInfo("mdc_spm_Sales_2", "Sales_Region");
        [Column]
        public string Divison_K1 { get { return _Divison_K1; } set { _Divison_K1 = value; EntityState.FieldChange("Divison_K1"); } } private string _Divison_K1; public static FieldInfo divison_K1 = new FieldInfo("mdc_spm_Sales_2", "Divison_K1");
        [Column]
        public string Divison_K2 { get { return _Divison_K2; } set { _Divison_K2 = value; EntityState.FieldChange("Divison_K2"); } } private string _Divison_K2; public static FieldInfo divison_K2 = new FieldInfo("mdc_spm_Sales_2", "Divison_K2");
        [Column]
        public string Divison_K3 { get { return _Divison_K3; } set { _Divison_K3 = value; EntityState.FieldChange("Divison_K3"); } } private string _Divison_K3; public static FieldInfo divison_K3 = new FieldInfo("mdc_spm_Sales_2", "Divison_K3");
        [Column]
        public string Divison_K1K2 { get { return _Divison_K1K2; } set { _Divison_K1K2 = value; EntityState.FieldChange("Divison_K1K2"); } } private string _Divison_K1K2; public static FieldInfo divison_K1K2 = new FieldInfo("mdc_spm_Sales_2", "Divison_K1K2");

        [Column]
        public string KA { get { return _KA; } set { _KA = value; EntityState.FieldChange("KA"); } } private string _KA; public static FieldInfo kA = new FieldInfo("mdc_spm_Sales_2", "KA");
        [Column]
        public string KC { get { return _KC; } set { _KC = value; EntityState.FieldChange("KC"); } } private string _KC; public static FieldInfo kC = new FieldInfo("mdc_spm_Sales_2", "KC");
        [Column]
        public string KD { get { return _KD; } set { _KD = value; EntityState.FieldChange("KD"); } } private string _KD; public static FieldInfo kD = new FieldInfo("mdc_spm_Sales_2", "KD");
        [Column]
        public string KI { get { return _KI; } set { _KI = value; EntityState.FieldChange("KI"); } } private string _KI; public static FieldInfo kI = new FieldInfo("mdc_spm_Sales_2", "KI");
        [Column]
        public string KG { get { return _KG; } set { _KG = value; EntityState.FieldChange("KG"); } } private string _KG; public static FieldInfo kG = new FieldInfo("mdc_spm_Sales_2", "KG");
        [Column]
        public string KH { get { return _KH; } set { _KH = value; EntityState.FieldChange("KH"); } } private string _KH; public static FieldInfo kH = new FieldInfo("mdc_spm_Sales_2", "KH");
        [Column]
        public string KE { get { return _KE; } set { _KE = value; EntityState.FieldChange("KE"); } } private string _KE; public static FieldInfo kE = new FieldInfo("mdc_spm_Sales_2", "KE");
        [Column]
        public string KF { get { return _KF; } set { _KF = value; EntityState.FieldChange("KF"); } } private string _KF; public static FieldInfo kF = new FieldInfo("mdc_spm_Sales_2", "KF");
        [Column]
        public string KHA { get { return _KHA; } set { _KHA = value; EntityState.FieldChange("KHA"); } } private string _KHA; public static FieldInfo kHA = new FieldInfo("mdc_spm_Sales_2", "KHA");


        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_spm_Sales_2", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_spm_Sales_2", "Status");

        [Column]
        public string Department { get { return _Department; } set { _Department = value; EntityState.FieldChange("Department"); } }
        private string _Department;
        public static FieldInfo department = new FieldInfo("mdc_spm_Sales_2", "Department");

        [Column]
        public string ApplicationNo { get { return _ApplicationNo; } set { _ApplicationNo = value; EntityState.FieldChange("ApplicationNo"); } }
        private string _ApplicationNo;
        public static FieldInfo applicationNo = new FieldInfo("mdc_spm_Sales_2", "ApplicationNo");
    }
}
